<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<DiscMaster.Web.Models.Club>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	DiscMaster | Clubs
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div style="width: 450px; float: left;">
        <h1>Clubs</h1>

        <% foreach (var item in new DiscMaster.Web.Models.DiscMasterRepository().FindAllClubs().OrderBy(c=>c.name)) { %>
        <% Html.RenderPartial("~/Areas/Clubs/Views/Clubs/Details.ascx", item); %>
        <% } %>
        <div style="padding-top: 4px; clear: both;">
            <img alt="add" src="/Image.ashx?src=/Content/Media/Icons/24x24/add.png&width=18" style="vertical-align: middle;" />
            &nbsp;
            <%= Html.ActionLink("Register new Club", "Create") %>
        </div>
    </div>
    <div style="width: 380px; float: right;">
        <% Html.RenderPartial("~/Areas/Clubs/Views/Clubs/BigMap.ascx"); %>
    </div>
    <div style="clear: both;">
        &nbsp;</div>
</asp:Content>

